/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-06-05 15:47:39
 * @FilePath: /yuxiuproweb/src/api/app/home.js
 */
import request from "@/utils/request";

// 查询app_首页_图片列表
export function listImage(query) {
  return request({
    url: "/pro/image/list",
    method: "get",
    params: query,
  });
}

// 查询app_首页_图片详细
export function getImage(imageId) {
  return request({
    url: "/pro/image/" + imageId,
    method: "get",
  });
}

// 新增app_首页_图片
export function addImage(data) {
  return request({
    url: "/pro/image",
    method: "post",
    data: data,
  });
}

// 修改app_首页_图片
export function updateImage(data) {
  return request({
    url: "/pro/image",
    method: "put",
    data: data,
  });
}

// 删除app_首页_图片
export function delImage(imageId) {
  return request({
    url: "/pro/image/" + imageId,
    method: "delete",
  });
}
